package com.xmall.msg.entity.dict;

import com.xmall.define.dto.sys.DictDto;
import com.xmall.msg.base.BaseMsg;
import com.xmall.msg.base.MsgSourceType;
import lombok.Data;

import java.io.Serializable;

@Data
public class DictUpdateMsg extends BaseMsg implements Serializable {

    private DictDto dictDto;

    private void setDictDto(DictDto dictDto) {
        this.dictDto = dictDto;
    }

    public DictUpdateMsg build(MsgSourceType msgSourceType, String exchange, String routingKey) {
        super.build(msgSourceType, exchange, routingKey);
        return this;
    }

    public DictUpdateMsg dictDto(DictDto dictDto) {
        this.dictDto = dictDto;
        return this;
    }
}
